
#ifndef STACK_H
#define STACK_H

typedef unsigned long Item;

class Stack
{
private:
	enum {MAX =10};
	Item items[MAX];
	int top;
public:
	Stack(void);
	~Stack(void);

	bool isempty() const;
	bool isfull() const;
	bool push(const Item & item);
	bool pop(Item &item);
	void showtop() const;
};

#endif

